<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生学习中心 - 智能教学辅助系统</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.3/css/all.min.css">
    <link rel="stylesheet" href="css/student-dashboard.css">
</head>
<body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-primary">
        <div class="container">
            <a class="navbar-brand" href="#">智能教学辅助系统</a>
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav mr-auto">
                    <li class="nav-item active">
                        <a class="nav-link" href="#"><i class="fas fa-home"></i> 首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#" id="mistakes-btn"><i class="fas fa-exclamation-circle"></i> 错题本</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#" id="assessment-btn"><i class="fas fa-chart-line"></i> 能力评估</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#" id="ai-assistant-btn"><i class="fas fa-robot"></i> AI助手</a>
                    </li>
                </ul>
                <div class="navbar-text text-light mr-3">
                    <i class="fas fa-user-graduate"></i> 
                    <span id="student-name">加载中...</span>
                </div>
                <button class="btn btn-outline-light" id="logout-btn">退出登录</button>
            </div>
        </div>
    </nav>

    <div class="container my-4">
        <!-- 消息提示区 -->
        <div id="message-container"></div>
        
        <!-- 学生信息卡片 -->
        <div class="card mb-4">
            <div class="card-header bg-info text-white">
                <h5 class="mb-0"><i class="fas fa-id-card"></i> 学生信息</h5>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-md-3">
                        <div class="info-item">
                            <div class="info-label">学号</div>
                            <div class="info-value" id="student-id">-</div>
                        </div>
                    </div>
                    <div class="col-md-3">
                        <div class="info-item">
                            <div class="info-label">姓名</div>
                            <div class="info-value" id="student-name-card">-</div>
                        </div>
                    </div>
                    <div class="col-md-3">
                        <div class="info-item">
                            <div class="info-label">班级</div>
                            <div class="info-value" id="student-class">-</div>
                        </div>
                    </div>
                    <div class="col-md-3">
                        <div class="info-item">
                            <div class="info-label">年级</div>
                            <div class="info-value" id="student-grade">-</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 学习进度卡片 -->
        <div class="card mb-4">
            <div class="card-header bg-success text-white">
                <h5 class="mb-0"><i class="fas fa-chart-bar"></i> 学习进度</h5>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-md-8">
                        <h6>学科完成进度</h6>
                        <div id="subject-progress"></div>
                    </div>
                    <div class="col-md-4">
                        <h6>练习统计</h6>
                        <div class="stats-container">
                            <div class="stats-item">
                                <div class="stats-value" id="total-sessions">0</div>
                                <div class="stats-label">练习次数</div>
                            </div>
                            <div class="stats-item">
                                <div class="stats-value" id="total-exercises">0</div>
                                <div class="stats-label">累计习题</div>
                            </div>
                            <div class="stats-item">
                                <div class="stats-value" id="correct-rate">0%</div>
                                <div class="stats-label">正确率</div>
                            </div>
                            <div class="stats-item">
                                <div class="stats-value" id="total-time">0分钟</div>
                                <div class="stats-label">总时长</div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <hr>
                
                <h6>知识点掌握情况</h6>
                <div id="knowledge-points"></div>
            </div>
        </div>
        
        <!-- 练习区域 -->
        <div class="card mb-4">
            <div class="card-header bg-primary text-white">
                <h5 class="mb-0"><i class="fas fa-book"></i> 练习学习</h5>
            </div>
            <div class="card-body">
                <div class="row mb-4">
                    <div class="col-md-4">
                        <div class="form-group">
                            <label for="subject-selector">选择学科</label>
                            <select class="form-control" id="subject-selector">
                                <option value="">请选择学科</option>
                                <option value="语文">语文</option>
                                <option value="数学">数学</option>
                                <option value="英语">英语</option>
                                <option value="物理">物理</option>
                                <option value="化学">化学</option>
                                <option value="生物">生物</option>
                                <option value="历史">历史</option>
                                <option value="地理">地理</option>
                                <option value="政治">政治</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="form-group">
                            <label for="knowledge-point-selector">知识点(可选)</label>
                            <select class="form-control" id="knowledge-point-selector">
                                <option value="">全部知识点</option>
                            </select>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="form-group">
                            <label>&nbsp;</label>
                            <div class="d-flex">
                                <button class="btn btn-primary btn-block" id="load-exercises-btn">
                                    <i class="fas fa-play-circle"></i> 开始练习
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div id="exercise-container">
                    <div class="text-center py-5">
                        <p class="lead">请选择学科开始练习</p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <footer class="footer bg-light py-3 mt-5">
        <div class="container text-center">
            <span class="text-muted">© 2023 智能教学辅助系统. 版权所有.</span>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js"></script>
    <script src="js/student-dashboard.js"></script>
</body>
</html> 